package com.yyaccp.appinfo.service;

import com.yyaccp.appinfo.domain.AppVersion;
import com.yyaccp.appinfo.mapper.AppVersionMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppVersionService {
    @Autowired
    private AppVersionMapper appVersionMapper;


    public List<AppVersion> selectByVersionId(Long versionId) {
        return appVersionMapper.selectByVersionId(versionId);
    }

    public Integer add(AppVersion appVersion) {
        return appVersionMapper.insert(appVersion);
    }

    public Long getMaxId(){
        return appVersionMapper.getMaxId();
    }

    public int upd(AppVersion appVersion) {
        return appVersionMapper.updateByPrimaryKey(appVersion);
    }
}
